<?php
/**
 * Description of CategoryService
 *
 * @author cybill
 */
class Admin_Model_CategoryService extends Admin_Model_BaseService {
    
    protected $daoClass = 'Admin_Model_DbTable_Category';
    
    public function getCategory($where = array(), $options = array()) {
        return $this->getDao()->getCategory($where, $options);
    }
    
    public function getAllCategory() {
        return $this->getDao()->getAllCategory();
    }
    
    public function getCategoryById($id = "") {
        return $this->getDao()->getCategoryById($id);
    }
    
    public function getCategoryByName($name = "") {
        return $this->getDao()->getCategoryByName($name);
    }
    
    public function getCategoryID() {
        return $this->getDao()->getCategoryID();
    }
    
    public function countRows($where = '') {
        return $this->getDao()->countRows($where);
    }
    
    public function doUpdate($data = array(), $where = '') {
        return $this->getDao()->doUpdate($data, $where);
    }
    
    public function doSave($data = array()) {
        return $this->getDao()->doSave($data);
    }
    
    public function doDelete($where = '') {
        return $this->getDao()->doDelete($where);
    }
}
